home *** CD-ROM | disk | FTP | other *** search
- PROMPT
-
- Changes the prompt string of the current Shell.
-
- Format
-
- PROMPT [<prompt>]
-
- Template
-
- PROMPT
-
- Location
-
- Internal
-
- PROMPT allows you to customize the prompt string, the text printed by the
- Shell at the beginning of a command line. The prompt string can contain any
- characters, including escape sequences.
-
- This manual shows the prompt string as 1>.
-
- The default prompt string is:
-
- "%N.%S>"
-
- which displays the Shell number, a period, the current directory, a right
- angle-bracket, and a space. Entering PROMPT without a string argument resets
- the prompt to this default.
-
- The substitutions available for the <prompt> string are:
-
- %N
-
- Displays the process number for the Shell.
-
- %S
-
- Displays the current directory.
-
- %R
-
- Displays the return code for the last operation.
-
- A space is not automatically added to the end of the string. If you want a
- space between the prompt and typed-in text, place it in the string, and
- enclose the string in double quotation marks,
-
- You can embed commands in the prompt string by enclosing the command in back
- apostrophes (`).
-
- Example 1:
-
- 1> PROMPT %N
- 1
-
- Only the Shell number is shown. The > is removed from the prompt.
-
- Example 2:
-
- 1> PROMPT "%N.%S.%R>"
- 1.Work:Snim.0>
-
- The Shell number, current directory, and return code of the previous command
- are shown. A space is included after the >.
-
- For more examples using the PROMPT command, see Chapter 8.
-